package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class Leave implements Serializable {


    @Serial
    private static final long serialVersionUID = -1060387248566764999L;
    //id
    private int id;
    //学生姓名
    private String name;
    //请假时间
    private Date leaveTime;
    //请假原因
    private String reason;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "Leave{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", leaveTime=" + leaveTime +
                ", reason='" + reason + '\'' +
                '}';
    }
}
